// itemtest.cc
// This will test the item class to make sure all methods
// and pointers work
// By Jorge Zamora
#include "item.h"

#include "list.h"
#include "bool.h"
#include "stdio.h"
using namespace std;

int main(int argc, char *argv[]){
  List *itemList = new List();

  int itemNumbers [5] = {100, 200, 1000, 5001, 10003};
  int itemPrices [5] = {1.99, 10.00, 100, 10000.00, 1};
  int aisleNumbers [5] = {1,2,3,4,5};

  //build items and put them in a list
  for (int i=0; i<5; i++){
    Item *tempItem = new Item(itemNumbers[i],aisleNumbers[i],itemPrices[i]);
    itemList->Append(tempItem);
  }
  /*
   *display al the items in the list
   *while(itemList){
   *void *listItem; 
   *listItem = itemList->Remove();
   *Item *temp;
   *temp = (Item *) listItem;
   *printf("The number for the plant item is:%d\n", temp->getNumber());
   *printf("The aisle for the plant item is:%d\n", temp->getAisle());
   *printf("The price for the plant item is:%.2f\n", temp->getPrice());
   *}
  */
}
